def fun(num):
    # 奇数
    odd = []
    even = []
    for i in num:
        if i % 2:
            odd.append(i)
        else:
            even.append(i)
    return odd, even

lst = [10,20,30,1,3,5,8,9,11]
print(fun(lst))